package cn.lx.resource;

import cn.lx.annotation.UserLog;
import cn.lx.feature.LxAOP;
import cn.lx.interceptor.Login;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;

/**
 * Created by Administrator on 2017/3/14.
 */
@Path("/test")
@LxAOP
public class TestResource {
    @GET
    @Path("/test1")
    public String get1(){
        return "test1";
    }


    @GET
    @Path("/test2")
    @Login
    public Response get2(){
        return null;
    }



}
